# Contributors: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=libfolia
pkgver=2.20
pkgrel=0
pkgdesc="C++ library for FoLiA (Format for Linguistic Annotation)"
options="!check"
arch="all"
url="https://github.com/LanguageMachines/libfolia"
license="GPL-3.0-only"
makedepends="libtool libxml2-dev ticcutils-dev icu-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/libfolia/releases/download/v$pkgver/libfolia-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
a85d73dabc64d4e13231d731552ce768c31581109ffcb0d3f03bf4efb85863eacbcd937ea37bf6dd4069bec8bb7795f3981cca851328510c5a3507489824f4b7  libfolia-2.20.tar.gz
"
